<{include file="index/header.html"}> 
<div class="nav">
	<a href="?m=api&a=notice" class="ch">消息通知</a>
	<a href="?m=api&a=notice_log">消息列表</a> 
</div>
<div class="explain">
	<div class="name"><span>操作提示</span></div>
	<div class="con"> 
		<p>短信，邮件，微信模板消息，模块对应的各种通信接口，这块只做测试使用，做开发的可以。</p>  
	</div>
</div>

<div class="filter">
	<a class="add" href="javascript:;" onClick="edit_cats('编辑类型','?m=api&a=notice_type_edit')">添加消息类型</a>
</div> 
<div class="main"> 
	<table class="ltable">
		<thead>
			<tr>
				<th width="250">名称</th>
				<th width="260">别名</th> 
				<th width="50">状态</th> 
				<th width="180">操作</th> 
				<th></th>
			</tr>
		</thead>
		<tbody>
		<{if $data}>
			<{foreach item=i from=$data}>
			<tr>
				<td><{$i.name}></td> 
				<td><{$i.alias}></td> 
				<td><{if $i.status}>开启<{else}>关闭<{/if}></td>
				<td>
					<a href="javascript:;" onClick="edit_cats('编辑类型','?m=api&a=notice_type_edit&id=<{$i.id}>')" class="edit">编辑</a>
					<a href="?m=api&a=notice_tpl_test&id=<{$i.id}>" class="edit">测试发送</a>
				</td> 
				<td></td>
			</tr>
			<{/foreach}>
		<{else}>
	 	 	<tr><td colspan="5">还没有数据，赶快添加吧！</td></tr>
		<{/if}>
	</tbody>
</table> 
</div>
<{include file="index/footer.html"}>
<script type="text/javascript">
function edit_cats(name, url){  
	parent.dialog(name, url, 500); 
} 
</script>